<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>       
        <title><ui:insert name="title">Default Title</ui:insert></title>
        <h:outputStylesheet name="./css/jsfcrud.css"/>
        <h:outputStylesheet name="./css/style.css"/>        
        <h:outputStylesheet library="css" name="base.css"/>              
        <h:outputScript library="js" name="jsfcrud.js"/>
    </h:head>

    <h:body>
        <p:growl id="growl" life="3000" />
        <div id="wrapper">
            <div id="logo">
                <h1>
                    Mira
                </h1>
                <p><em>Trabajo de Coraz&oacute;n</em></p>
            </div>                
        </div>
        <div id="page">            
            <div id="sidebar">
                <h:form id="menuForm">
                    <p:slideMenu>
                        <p:menuitem value="#{bundle.Home}" outcome="/index" icon="ui-icon-home"/>
                        <p:submenu label="#{bundle.Maintenance}">
                            <p:menuitem value="Agenda" action="#{agendaController.prepareList}" />
                            <p:menuitem value="Antecedentes" action="#{antecedentesController.prepareList}" />
                            <p:menuitem value="Cita" action="#{citaController.prepareList}" />
                            <p:menuitem value="Pacientes" action="#{pacientesController.prepareList}"  />
                        </p:submenu>
                        <p:menuitem value="Paciente" action="#{wizarPacienteControlador.prepareList}" />
                    </p:slideMenu>
                </h:form>
            </div>
            <div id="content"><ui:insert name="body"/></div>
        </div>
    </h:body>
</html>
